﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace isDrone
{
   public class InputState
   {
       public float Tangag;
       public float Kren;
       public float Riskanie;
       public float Gaz;
       public bool Start;
       public bool Stop;
       public bool Emergency;

       public bool Compare(InputState last)
       {
           return
               Math.Abs(Tangag - last.Tangag) > 0.01 ||
               Math.Abs(Kren - last.Kren) > 0.01 ||
               Math.Abs(Riskanie - last.Riskanie) > 0.01 ||
               Math.Abs(Gaz - last.Gaz) > 0.01
            
               ;
       }





   }
}
